function editarPaciente(id,nome,cpf,rg,dataNasc,endereco,telefone,celular,email,numPasta,nomeResp,diagnostico){
        location.href="cadastraPaciente.jsp";
        document.getElementById("id").value = id;
        document.getElementById("nome").value = nome;
        document.getElementById("cpf").value = cpf;
        document.getElementById("rg").value = rg;
        document.getElementById("dataNasc").value = dataNasc;
        document.getElementById("endereco").value = endereco;
        document.getElementById("telefone").value = telefone;
        document.getElementById("celular").value = celular;
        document.getElementById("email").value = email;
        document.getElementById("numPasta").value = numPasta;
        document.getElementById("nomeResp").value = nomeResp;
        document.getElementById("diagnostico").value = diagnostico;
        //document.getElementById("convenio").options[convenio].selected = true;
        document.getElementById("preEditaPaciente").value = "TrataEditaPaciente";
}